import request from '@/utils/request.js'
export const add = (data) => {
    return request.post(
        '/swiper/add',
        data
    )
}

export const dele = (data) => {
    return request.delete(
        `/swiper/delete/${data}`,
    )
}
export const update =(id,data) =>{
    return request.put(
        `/swiper/update/${id}`,
        data
    )
}
export const findclass = (id) => {
    return request.get(
        `/teacher/findClass/${id}`,
    )
}
export const listclass = () => {
    return request.get('/classroom/getList')
}
export const hilist = () => {
    return request.get(
        '/homework/getList',
    )
}
export const pagestu = (id,data) => {
    return request.get(
        '/student/getPage',
        {
            params:data,
        }
    )
}
export const typeAverage = (data) => {
    return request.post(
        '/score/getAverageScore', null,// 专项平均分
        {
            params:data,
        }
    )
}
export const rank = (data) => {
    return request.post(
        '/score/getRankPeopleSum', null,// 分为段
        {
            params:data,
        }
    )
}

export const score = (data) => {
    return request.post(
        '/score/getScore',null,
        {
            params:data,
        }
    )
}
export const findstu = (id) => {
    return request.get(
        `/classroom/findStu/${id}`,
    )
}
